.chat-app {
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: rgb(242, 242, 242);
  .chat-header {
    width: 100vw;
    display: flex;
    height: 50px;
    line-height: 50px;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
  }

  .chat-input {
    width: 100vw;
    height: 50px;
    position: fixed;
    bottom: 0;
    background-color: white;
    padding-top: 10px;
    input {
      width: 70vw;
      margin-left: 20px;
      height: 35px;
      margin-bottom: 10px;
      border-radius: 10px;
    }

    button {
      margin-left: 10px;
      width: 70px;
      height: 30px;
      border-radius: 10px;
    }
  }

  .chat-main {
    flex: 1;
    height: 80vh;
    overflow-y: scroll;
    .left {
      min-width: 50%;
      display: flex;
      justify-content: flex-start;
      height: 20.3vw;
      margin: 20px;
      align-items: center;
      position: relative;

      img {
        vertical-align: middle;
      }

      .chat-main-header {
        padding: 0 6px;
        position: absolute;
        left: 0;
      }

      .chat-main-text {
        font-size: 18px;
        min-width: 50px;
        height: 50%;
        position: absolute;
        left: 60px;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 10%;
        padding: 5px 10px;
      }
    }

    .right {
      min-width: 50%;
      display: flex;
      justify-content: flex-end;
      height: 50px;
      margin: 20px;
      align-items: center;

      img {
        vertical-align: middle;
      }

      .chat-main-header {
        padding: 0 6px;
      }

      .chat-main-text {
        font-size: 1px;
        height: 30px;
        line-height: 30px;
        background-color: green;
        border: 1px solid #eee;
        border-radius: 10%;
        padding: 0px 10px;
      }
    }

    img {
      display: block;
      width: 50px;
      height: 50px;
      border-radius: 50px;
    }
  }
}
